package com.github.chain.admin.client;

import com.github.chain.admin.common.domain.AdminLogger;
import com.github.framework.core.page.DataPage;
import com.github.chain.admin.common.request.AdminLoggerRequest;
import com.github.framework.core.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author AIQ
 * @date 2023/5/25
 * @project er-trader
 */

@FeignClient(value = "admin-server")
@RestController
public interface AdminLoggerServiceClient {

    @PostMapping("/findLogByPage")
    Result<DataPage<AdminLogger>> findLogByPage(@RequestBody AdminLoggerRequest adminLoggerRequest);

    @PostMapping
    Result<Integer> insertSelective(@RequestBody AdminLogger adminLogger);
}
